﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AgorApp.Roma.Model.DataTransferObjects.Utils
{
    /// <summary>
    /// 
    /// </summary>
    public static class IntIdKeeper
    {
        private static int m_Current = int.MinValue;

        /// <summary>
        /// Nexts this instance.
        /// </summary>
        /// <returns></returns>
        public static int Next()
        {
            return ++m_Current;
        }
    }

    /// <summary>
    /// 
    /// </summary>
    public static class ShortIdKeeper
    {
        private static short m_Current = short.MinValue;

        /// <summary>
        /// Nexts this instance.
        /// </summary>
        /// <returns></returns>
        public static short Next()
        {
            return ++m_Current;
        }
    }
}
